//修改个人信息的表单弹出
$(function(){
$("#amend").hover(function () {
    $(this).stop().animate({
        opacity: '1'
    }, 600);
}, function () {
    $(this).stop().animate({
        opacity: '0.6'
    }, 1000);
}).click( function () {
    $("body").append("<div id='mask'></div>");
    $("#mask").addClass("mask").fadeIn("slow");
    $(".amendBox").fadeIn("slow");
     var address =document.getElementById("pAddress").innerHTML;
     var name = document.getElementById("pName").innerHTML;
     //  var phoneNumber = document.getElementById("deflautphonenumber").innerHTML;

   document.getElementById("address").value=address;
   document.getElementById("name").value=name;
   //document.getElementById("phoneNumber").value=phoneNumber;
});
//关闭修改表单
    $(".close_btn").hover(function () { $(this).css({ color: 'black' }) }, function () { $(this).css({ color: '#999' }) }).click( function () {
      $(".amendBox").fadeOut("fast");
      $("#mask").css({ display: 'none' });
    });
//提交表单
    $("#amendBtn").hover(function(){$(this).css({opacity:'0.6'})},function(){$(this).css({opacity:'0.8'})}).click(function(){
        document.getElementById("amendForm").submit();
        $(".amendBox").fadeOut("fast");
        $("#mask").css({display:'none'});
    });

     $(".user").mouseover(function(){
     $(".me").css("display","block");
     $(".me").css("z-index","1000");
    });
    $(".user").mouseout(function() {
        $(".me").css("display", "none");
        $(".me").css("z-index","-1");
    });

});